
type MapNodeEnum = {
  value: number;
  label: string;
}[];
const mapNodeType: MapNodeEnum = [
  {
    value: 1,
    label: "充电点",
  },
  {
    value: 2,
    label: "停靠点",
  },
  {
    value: 3,
    label: "开门点",
  },
  {
    value: 4,
    label: "关门点",
  },
  {
    value: 5,
    label: "电梯外点",
  },
  {
    value: 6,
    label: "电梯内点",
  },
  // {
  //   value: 7,
  //   label: "关梯点",
  // },
  {
    value: 8,
    label: "站点",
  },
  {
    value: 9,
    label: "其他",
  },
  {
    value: 10,
    label: "充电前置点",
  },
  {
    value: 100,
    label: "被锁资源",
  }
];
// 节点的颜色
type TypeColor = string[];
const mapNodeTypeColor: TypeColor = [
  "#43CF7C",
  "#FFC300",
  "#AC33C1",
  "#AC33C1",
  "#7948EA",
  "#C2A8FF",
  "#4319A6",
  "#2A82E4",
  "#B3D6FF",
  "#1D733F"
];
// 节点边框的颜色
const nodeBorderColor:TypeColor = [
  "#00BAAD",
  "#FF8D1A",
  "#D265E6",
  "#D265E6",
  "#9F77FC",
  "#9F77FC",
  "#A882FF",
  "#17559C",
  "#85BEFF",
  "#00BAAD"
]

const hasDirectionList: MapNodeEnum = [
  {
    value: 0,
    label: "否",
  },
  {
    value: 1,
    label: "是",
  },
];

const spinList: MapNodeEnum = [
  {
    value: 0,
    label: "默认",
  },
  {
    value: 1,
    label: "开同步旋转",
  },
  {
    value: 2,
    label: "关同步旋转",
  },
];

const edgeTypeList: MapNodeEnum = [
  {
    value: 1,
    label: "直线",
  },
  {
    value: 2,
    label: "折线",
  },
  {
    value: 3,
    label: "贝赛尔曲线",
  },
];
const edgeTypeLine: TypeColor = ["normal", "er", "manhattan"];

const lineModeList: MapNodeEnum = [
  {
    value: 1,
    label: "单行线",
  },
  {
    value: 2,
    label: "双行线",
  },
];

const equipmentModelList: MapNodeEnum = [
  {
    value: 2,
    label: "生产设备",
  },
  {
    value: 3,
    label: "门",
  },
  {
    value: 4,
    label: "电梯",
  },
];

export {
  mapNodeType,
  hasDirectionList,
  edgeTypeList,
  lineModeList,
  mapNodeTypeColor,
  nodeBorderColor,
  edgeTypeLine,
  equipmentModelList,
  spinList
};
